let Mock = require('mockjs')
let user=require("./user")
let url="https://www.fastmock.site"

user.forEach(item => {
	Mock.mock(url + item.url, item.type, (option) => {//循环生成全部mock
		return item.response(option)

	})
});
Mock.setup({//仅能配置ajax的响应时间
    timeout: '100-100'//响应的毫秒数，也可以设置为 'min-max'
})
exports.modules = {
	Mock
}